package com.ssii.www.myproject.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name="t_log")
@ToString
@NoArgsConstructor
public class Mylog extends BaseDomain{

  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date create_time;

  @Getter
  @Setter
  private String logs;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  public Date getCreate_time() {
    return create_time;
  }

  public void setCreate_time(Date create_time) {
    this.create_time = create_time;
  }
}
